<style>
body{
  background:black url(game_bg_2_hd.jpg) no-repeat center center;

}
#dl{
  width:506px;
  height:270px;
  background:url(shark1.png) 0px 0px;
}
</style>
<div id="dl" style="position:absolute;left:10px;top:10px;"></div>
<script>
  var timer = setInterval(f,10);
  var i = 0;
  function f(){
  i = i-270;
  dl.style.left=parseInt(dl.style.left)+5;
  dl.style.background="url(shark1.png)0px"+i+"px";

} 
</script>